import requests
import urllib
import utility

def requestInfo(industryCdoe,province):
    baseUrl = 'http://www.neeq.com.cn/nqxxController/nqxx.do'
    p={
        'callback': 'callFun',
        'page': 0,
        'typejb': 'T',
        'xxzqdm': '',
        'xxzrlx': '',
        'xxhyzl': industryCdoe,
        'xxssdq': urllib.parse.quote(province),
        'sortfield': 'xxzqdm',
        'sorttype': 'asc',
        'dicXxzbqs': '',
        'xxfcbj': ''
    }
    res = requests.get(baseUrl,params=p)
    infoObj = utility.parseResponseBody(res.text)
    return infoObj['content']



#入口
#if __name__ == '__main__':
#    infoObj = requestInfo('I65','广西省')
